import * as vscode from 'vscode';

export interface GPConfiguration {
    maxLineLength: number;
    formatOnSave: boolean;
}

export function getConfiguration(): GPConfiguration {
    const config = vscode.workspace.getConfiguration('gp');
    return {
        maxLineLength: config.get('maxLineLength', 80),
        formatOnSave: config.get('formatOnSave', false)
    };
}

